/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package config;

import AssignmnetInterfaceImpl.demoDouble;
import AssignmnetInterfaceImpl.demoInt;
import AssignmnetInterfaceImpl.demoString;
import com.gizelle.tpassignment.service.interfaceAssign;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @author Gizelle
 */
@Configuration
public class AppConfig 
{
    @Bean(name = "hello")
    public interfaceAssign getString() 
    {
        return new demoString();
    }

    @Bean(name = "number")
    public interfaceAssign getNumber() 
    {
        return new demoInt();
    
    }
    
    @Bean(name = "price")
    public interfaceAssign getPrice() 
    {
        return new demoDouble();
    
    }
   
}
    


